package com.my.blog.myblog.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.my.blog.myblog.entity.Blog;
import com.my.blog.myblog.entity.custom.TimeCount;
import org.apache.ibatis.annotations.Mapper;

import java.util.HashMap;
import java.util.List;

@Mapper
public interface BlogMapper extends BaseMapper<Blog> {
    /**
     * 根据年或月或日不同的日期格式来查询对应的visit总数
     * @param map
     * @return
     */
    List<TimeCount> selectBlogCountByDate(HashMap<String,Object> map);
}